.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.fullscreenVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    /* 镜像翻转 */
}

.controlsContainer {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.recordButtonWrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.progressRing {
    position: absolute;
    width: 100%;
    height: 100%;
    top:15px;
    transform: rotate(-90deg);
}

.progressCircle {
    fill: none;
    stroke: #ff2366;
    stroke-width: 4;
    stroke-linecap: round;
    transition: none;
    /* 禁用CSS过渡 */
}

.recordButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #ff2366;
    cursor: pointer;
    transition: transform 0.2s;
}

.recording {
    transform: translate(-50%, -50%) scale(0.8);
    background: #ff2366;
}

.recordButton:active {
    transform: translate(-50%, -50%) scale(0.9);
}

.recordButtonText {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.tipsBanner {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.tipsBanner p {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.previewContainer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 200px;
}

.previewTitle {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

/* 修正预览视频类名 */
.preview-video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.uploadControls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.uploadButton, .pauseButton {
    padding: 8px 12px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.uploadButton {
    background: #ff2366;
    color: white;
    flex: 1;
    margin-right: 8px;
}

.uploadButton:hover:not(:disabled) {
    background: #e61e5c;
    transform: translateY(-2px);
}

.pauseButton {
    background: #444;
    color: white;
    flex: 1;
}

.pauseButton:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
}

.uploadButton:disabled, .pauseButton:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

.progressContainer {
    margin-top: 10px;
}

.progressBarWrapper {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progressBar {
    height: 100%;
    background: linear-gradient(to right, #ff2366, #ff6b9c);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progressText {
    color: white;
    font-size: 14px;
    display: block;
    text-align: center;
}

.uploadStatus {
    color: #ccc;
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

.downloadButton {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: #ff2366;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.downloadButton:hover {
    background: #e61e5c;
    transform: translateY(-2px);
}

.sp {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}



/* 视频缩略图容器 */
/* .spContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
} */
.videoListContainer {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

.spContainer {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.fullscreenVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 加载状态 */
.loadingState {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: white;
}

.loadingSpinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff2366;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误状态 */
.errorState {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 20px;
    text-align: center;
}

.retryButton {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #ff2366;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
}

/* 空状态 */
.emptyState {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 20px;
    text-align: center;
}

.recordButton {
    margin-top: 15px;
    padding: 8px 20px;
    background-color: #ff2366;
    color: white;
    border: none;
    border-radius: 50%;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 视频覆盖层 */
.videoOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

/* 视频指示器 */
.videoIndicator {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    gap: 5px;
}

.indicatorDot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.activeDot {
    background-color: #ff2366;
    transform: scale(1.2);
}

/* 互动按钮 */
.interactionButtons {
    position: absolute;
    right: 15px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    pointer-events: auto;
}

.interactionButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 12px;
}

.interactionButton svg {
    font-size: 28px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* 录制新视频按钮 */
.recordNewButton {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff2366;
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.recordNewButton:active {
    transform: scale(0.95);
}

.videoThumbnails {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.thumbnail {
    position: relative;
    width: 177px;
    height: 177px;
    overflow: hidden;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
}

.thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 模态框样式 */
.modalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modalContent {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.closeButton {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 36px;
    color: gray;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* 确保关闭按钮在视频上方 */
}

.closeButton:hover {
    color: #f00;
}